import { DatePicker as AntdDatePicker } from 'antd';
import React from 'react';
import { commonProps } from './index';
// type
import type { AntdRangePickerProps } from './index';

export type Props = AntdRangePickerProps;

function RangePicker(props: Props) {
  const RangePickerProps = {
    ...commonProps,
    separator: <div>-</div>,
    ...props,
  };
  return <AntdDatePicker.RangePicker {...RangePickerProps} />;
}

export default RangePicker;
